#ifndef SINGLETON_H
#define SINGLETON_H

class Singleton
{
protected:
  static Singleton* _self;
  static int _refcount;
  Singleton(){}
  virtual ~Singleton()  {printf ("~Singleton\n");}
public:
  static Singleton* Instance();
  void FreeInst() ;
};

#endif // SINGLETON_H
